package com.jianying.mapper;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.jianying.base.BaseMapper;
import com.jianying.dataSource.TargetDataSource;
import com.jianying.domain.SettlementItem;

@Repository("settlementItemMapper")
public class SettlementItemMapper extends BaseMapper {

	private static final String NAME_SPACE = "com.jianying.mapper.SettlementItemMapper.";
	
	@TargetDataSource(name="ds1")
	public void insertBatch(List<SettlementItem> settlementItems){
		getSqlSessionTemplate().insert(NAME_SPACE + "insertBatch", settlementItems);
	}
	
	public List<SettlementItem> bySettlementId(Integer settlementId){
		return getSqlSessionTemplate().selectList(NAME_SPACE + "bySettlementId", settlementId);
	}
}
